package com.ajx.blog.service.api;

import com.ajx.blog.entity.ContentType;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface ContentTypeService extends IService<ContentType> {

    List<ContentType> selectAllType();

    /**
     * @param {*}
     * @return {Map<String, Integer>} 类型和类型文章数量对应的map
     * 
     * @description: 查询各类型的文章数量
     */
    Map<String, Integer> selectArticleNumByType();

}
